Your grapics importer component can support MIME types that correspond to graphics formats it supports. To make a list of these MIME types available to applications or other software, it must implement the GraphicsImportGetMIMETypeList function described in this section.
Returns a list of MIME types supported by the grapics importer component.
pascal ComponentResult GraphicsImportGetMIMETypeList (
GraphicsImportComponent ci,
void *qtAtomContainerPtr);
ci Specifies an instance of a graphics importer component.
qtAtomContainerPtr
A pointer to a MIME type list, a QT atom container that contains a list of MIME types supported by the grapics importer component. The MIME type list structure is described in "MIME Type List" (page 537).
To indicate that your grapics importer component supports this function, set the hasMovieImportMIMEList flag in the componentFlags field of the component description record.
It is not necessary to set a data source
before making this call, since it does not provide
any file-specific information.
noErr
|
0 | No error |
paramErr
|
-50 | Invalid parameter specified |
memFullErr
|
-108 | Not enough memory available |
badComponentSelector
|
0x80008002 | Component does not support the specified request code |
| Previous | Chapter Contents | Chapter Top | Next |